package com.tf.temper.service.impl;


import com.tf.temper.dao.LogeventDao;
import com.tf.temper.entity.LogeventEntity;
import com.tf.temper.service.LogeventService;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;


@Service("logeventService")
public class LogeventServiceImpl extends ServiceImpl<LogeventDao, LogeventEntity> implements LogeventService<LogeventEntity>
{
    public PageUtils<LogeventEntity> queryPage(Map<String, Object> params)
    {
        EntityWrapperHandle<LogeventEntity> ew = new EntityWrapperHandle<LogeventEntity>(params);
        Page<LogeventEntity> page = this.selectPage(new Query<LogeventEntity>(params).getPage(),ew);
        page.setTotal(this.selectCount(ew));
        return new PageUtils<LogeventEntity>(page);
    }

    public List<LogeventEntity> queryPageByLike(Map<String, Object> params)
    {
        return baseMapper.queryPageByLike(params);
    }
}
